package com.caiyouxi.goods.mapper;

import com.caiyouxi.goods.model.GoodsDiscount;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;

/**
 * 商品相关
 * chensong
 */
@Mapper
public interface GoodsDiscountMapper {
    
    int add_goods_discounts(GoodsDiscount goodsDiscount);
    
    int update_goods_discounts(GoodsDiscount goodsDiscount);

    int delete_goods_discounts(GoodsDiscount goodsDiscount);

    GoodsDiscount get_goods_discounts_info(int id);

    List<GoodsDiscount> get_goods_discounts_list(GoodsDiscount goodsDiscount);

    int get_goods_discounts_list_count(GoodsDiscount goodsDiscount);

    List<GoodsDiscount> goods_discounts_usefull_list(HashMap<String, Object> map);

    GoodsDiscount check_goods_discounts_amount(HashMap<String,Object> map);
}
